package com.woniuxy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.woniuxy.pojo.Guest;

public interface GuestMapper {
	
//	@Insert("insert into guest values()")
//	public int addGuest(Guest guest);

	@Select("Select * from guest")
	public List<Guest> getAllG();

	@Select("Select * from guest where gid in (select gid t from orderdetail where checkout is null)")
	public List<Guest> getCheckinG();
}
